package com.gridmobi.xrtb.domain.dsp;

import java.util.ArrayList;
import java.util.List;

public class DspCampaignsAccumulateExample {
    protected String orderByClause;

    protected  String groupByClause;

    protected  String fileClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public DspCampaignsAccumulateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public String getGroupByClause() {
        return groupByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = groupByClause;
    }

    public String getFileClause() {
        return fileClause;
    }

    public void setFileClause(String fileClause) {
        this.fileClause = fileClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDaysIsNull() {
            addCriterion("days is null");
            return (Criteria) this;
        }

        public Criteria andDaysIsNotNull() {
            addCriterion("days is not null");
            return (Criteria) this;
        }

        public Criteria andDaysEqualTo(String value) {
            addCriterion("days =", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysNotEqualTo(String value) {
            addCriterion("days <>", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysGreaterThan(String value) {
            addCriterion("days >", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysGreaterThanOrEqualTo(String value) {
            addCriterion("days >=", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysLessThan(String value) {
            addCriterion("days <", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysLessThanOrEqualTo(String value) {
            addCriterion("days <=", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysLike(String value) {
            addCriterion("days like", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysNotLike(String value) {
            addCriterion("days not like", value, "days");
            return (Criteria) this;
        }

        public Criteria andDaysIn(List<String> values) {
            addCriterion("days in", values, "days");
            return (Criteria) this;
        }

        public Criteria andDaysNotIn(List<String> values) {
            addCriterion("days not in", values, "days");
            return (Criteria) this;
        }

        public Criteria andDaysBetween(String value1, String value2) {
            addCriterion("days between", value1, value2, "days");
            return (Criteria) this;
        }

        public Criteria andDaysNotBetween(String value1, String value2) {
            addCriterion("days not between", value1, value2, "days");
            return (Criteria) this;
        }

        public Criteria andHIsNull() {
            addCriterion("h is null");
            return (Criteria) this;
        }

        public Criteria andHIsNotNull() {
            addCriterion("h is not null");
            return (Criteria) this;
        }

        public Criteria andHEqualTo(Integer value) {
            addCriterion("h =", value, "h");
            return (Criteria) this;
        }

        public Criteria andHNotEqualTo(Integer value) {
            addCriterion("h <>", value, "h");
            return (Criteria) this;
        }

        public Criteria andHGreaterThan(Integer value) {
            addCriterion("h >", value, "h");
            return (Criteria) this;
        }

        public Criteria andHGreaterThanOrEqualTo(Integer value) {
            addCriterion("h >=", value, "h");
            return (Criteria) this;
        }

        public Criteria andHLessThan(Integer value) {
            addCriterion("h <", value, "h");
            return (Criteria) this;
        }

        public Criteria andHLessThanOrEqualTo(Integer value) {
            addCriterion("h <=", value, "h");
            return (Criteria) this;
        }

        public Criteria andHIn(List<Integer> values) {
            addCriterion("h in", values, "h");
            return (Criteria) this;
        }

        public Criteria andHNotIn(List<Integer> values) {
            addCriterion("h not in", values, "h");
            return (Criteria) this;
        }

        public Criteria andHBetween(Integer value1, Integer value2) {
            addCriterion("h between", value1, value2, "h");
            return (Criteria) this;
        }

        public Criteria andHNotBetween(Integer value1, Integer value2) {
            addCriterion("h not between", value1, value2, "h");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andRequestsIsNull() {
            addCriterion("requests is null");
            return (Criteria) this;
        }

        public Criteria andRequestsIsNotNull() {
            addCriterion("requests is not null");
            return (Criteria) this;
        }

        public Criteria andRequestsEqualTo(Integer value) {
            addCriterion("requests =", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsNotEqualTo(Integer value) {
            addCriterion("requests <>", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsGreaterThan(Integer value) {
            addCriterion("requests >", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsGreaterThanOrEqualTo(Integer value) {
            addCriterion("requests >=", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsLessThan(Integer value) {
            addCriterion("requests <", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsLessThanOrEqualTo(Integer value) {
            addCriterion("requests <=", value, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsIn(List<Integer> values) {
            addCriterion("requests in", values, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsNotIn(List<Integer> values) {
            addCriterion("requests not in", values, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsBetween(Integer value1, Integer value2) {
            addCriterion("requests between", value1, value2, "requests");
            return (Criteria) this;
        }

        public Criteria andRequestsNotBetween(Integer value1, Integer value2) {
            addCriterion("requests not between", value1, value2, "requests");
            return (Criteria) this;
        }

        public Criteria andBidsIsNull() {
            addCriterion("bids is null");
            return (Criteria) this;
        }

        public Criteria andBidsIsNotNull() {
            addCriterion("bids is not null");
            return (Criteria) this;
        }

        public Criteria andBidsEqualTo(Integer value) {
            addCriterion("bids =", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsNotEqualTo(Integer value) {
            addCriterion("bids <>", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsGreaterThan(Integer value) {
            addCriterion("bids >", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsGreaterThanOrEqualTo(Integer value) {
            addCriterion("bids >=", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsLessThan(Integer value) {
            addCriterion("bids <", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsLessThanOrEqualTo(Integer value) {
            addCriterion("bids <=", value, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsIn(List<Integer> values) {
            addCriterion("bids in", values, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsNotIn(List<Integer> values) {
            addCriterion("bids not in", values, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsBetween(Integer value1, Integer value2) {
            addCriterion("bids between", value1, value2, "bids");
            return (Criteria) this;
        }

        public Criteria andBidsNotBetween(Integer value1, Integer value2) {
            addCriterion("bids not between", value1, value2, "bids");
            return (Criteria) this;
        }

        public Criteria andImpsIsNull() {
            addCriterion("imps is null");
            return (Criteria) this;
        }

        public Criteria andImpsIsNotNull() {
            addCriterion("imps is not null");
            return (Criteria) this;
        }

        public Criteria andImpsEqualTo(Integer value) {
            addCriterion("imps =", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsNotEqualTo(Integer value) {
            addCriterion("imps <>", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsGreaterThan(Integer value) {
            addCriterion("imps >", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsGreaterThanOrEqualTo(Integer value) {
            addCriterion("imps >=", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsLessThan(Integer value) {
            addCriterion("imps <", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsLessThanOrEqualTo(Integer value) {
            addCriterion("imps <=", value, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsIn(List<Integer> values) {
            addCriterion("imps in", values, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsNotIn(List<Integer> values) {
            addCriterion("imps not in", values, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsBetween(Integer value1, Integer value2) {
            addCriterion("imps between", value1, value2, "imps");
            return (Criteria) this;
        }

        public Criteria andImpsNotBetween(Integer value1, Integer value2) {
            addCriterion("imps not between", value1, value2, "imps");
            return (Criteria) this;
        }

        public Criteria andClicksIsNull() {
            addCriterion("clicks is null");
            return (Criteria) this;
        }

        public Criteria andClicksIsNotNull() {
            addCriterion("clicks is not null");
            return (Criteria) this;
        }

        public Criteria andClicksEqualTo(Integer value) {
            addCriterion("clicks =", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksNotEqualTo(Integer value) {
            addCriterion("clicks <>", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksGreaterThan(Integer value) {
            addCriterion("clicks >", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksGreaterThanOrEqualTo(Integer value) {
            addCriterion("clicks >=", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksLessThan(Integer value) {
            addCriterion("clicks <", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksLessThanOrEqualTo(Integer value) {
            addCriterion("clicks <=", value, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksIn(List<Integer> values) {
            addCriterion("clicks in", values, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksNotIn(List<Integer> values) {
            addCriterion("clicks not in", values, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksBetween(Integer value1, Integer value2) {
            addCriterion("clicks between", value1, value2, "clicks");
            return (Criteria) this;
        }

        public Criteria andClicksNotBetween(Integer value1, Integer value2) {
            addCriterion("clicks not between", value1, value2, "clicks");
            return (Criteria) this;
        }

        public Criteria andErrsIsNull() {
            addCriterion("errs is null");
            return (Criteria) this;
        }

        public Criteria andErrsIsNotNull() {
            addCriterion("errs is not null");
            return (Criteria) this;
        }

        public Criteria andErrsEqualTo(Integer value) {
            addCriterion("errs =", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsNotEqualTo(Integer value) {
            addCriterion("errs <>", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsGreaterThan(Integer value) {
            addCriterion("errs >", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsGreaterThanOrEqualTo(Integer value) {
            addCriterion("errs >=", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsLessThan(Integer value) {
            addCriterion("errs <", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsLessThanOrEqualTo(Integer value) {
            addCriterion("errs <=", value, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsIn(List<Integer> values) {
            addCriterion("errs in", values, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsNotIn(List<Integer> values) {
            addCriterion("errs not in", values, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsBetween(Integer value1, Integer value2) {
            addCriterion("errs between", value1, value2, "errs");
            return (Criteria) this;
        }

        public Criteria andErrsNotBetween(Integer value1, Integer value2) {
            addCriterion("errs not between", value1, value2, "errs");
            return (Criteria) this;
        }

        public Criteria andWinsIsNull() {
            addCriterion("wins is null");
            return (Criteria) this;
        }

        public Criteria andWinsIsNotNull() {
            addCriterion("wins is not null");
            return (Criteria) this;
        }

        public Criteria andWinsEqualTo(Integer value) {
            addCriterion("wins =", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotEqualTo(Integer value) {
            addCriterion("wins <>", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThan(Integer value) {
            addCriterion("wins >", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsGreaterThanOrEqualTo(Integer value) {
            addCriterion("wins >=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThan(Integer value) {
            addCriterion("wins <", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsLessThanOrEqualTo(Integer value) {
            addCriterion("wins <=", value, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsIn(List<Integer> values) {
            addCriterion("wins in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotIn(List<Integer> values) {
            addCriterion("wins not in", values, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsBetween(Integer value1, Integer value2) {
            addCriterion("wins between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andWinsNotBetween(Integer value1, Integer value2) {
            addCriterion("wins not between", value1, value2, "wins");
            return (Criteria) this;
        }

        public Criteria andCostIsNull() {
            addCriterion("cost is null");
            return (Criteria) this;
        }

        public Criteria andCostIsNotNull() {
            addCriterion("cost is not null");
            return (Criteria) this;
        }

        public Criteria andCostEqualTo(Float value) {
            addCriterion("cost =", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotEqualTo(Float value) {
            addCriterion("cost <>", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThan(Float value) {
            addCriterion("cost >", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThanOrEqualTo(Float value) {
            addCriterion("cost >=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThan(Float value) {
            addCriterion("cost <", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThanOrEqualTo(Float value) {
            addCriterion("cost <=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostIn(List<Float> values) {
            addCriterion("cost in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotIn(List<Float> values) {
            addCriterion("cost not in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostBetween(Float value1, Float value2) {
            addCriterion("cost between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotBetween(Float value1, Float value2) {
            addCriterion("cost not between", value1, value2, "cost");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}